package com.ruoyi.base.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.base.mapper.BaseBuildingMapper;
import com.ruoyi.base.domain.BaseBuilding;
import com.ruoyi.base.service.IBaseBuildingService;

/**
 * 楼宇Service业务层处理
 * 
 * @author yepanpan
 * @date 2020-11-09
 */
@Service
public class BaseBuildingServiceImpl implements IBaseBuildingService 
{
    @Autowired
    private BaseBuildingMapper baseBuildingMapper;

    /**
     * 查询楼宇
     * 
     * @param id 楼宇ID
     * @return 楼宇
     */
    @Override
    public BaseBuilding selectBaseBuildingById(Long id)
    {
        return baseBuildingMapper.selectBaseBuildingById(id);
    }

    /**
     * 查询楼宇列表
     * 
     * @param baseBuilding 楼宇
     * @return 楼宇
     */
    @Override
    public List<BaseBuilding> selectBaseBuildingList(BaseBuilding baseBuilding)
    {
        return baseBuildingMapper.selectBaseBuildingList(baseBuilding);
    }

    /**
     * 新增楼宇
     * 
     * @param baseBuilding 楼宇
     * @return 结果
     */
    @Override
    public int insertBaseBuilding(BaseBuilding baseBuilding)
    {
        return baseBuildingMapper.insertBaseBuilding(baseBuilding);
    }

    /**
     * 修改楼宇
     * 
     * @param baseBuilding 楼宇
     * @return 结果
     */
    @Override
    public int updateBaseBuilding(BaseBuilding baseBuilding)
    {
        return baseBuildingMapper.updateBaseBuilding(baseBuilding);
    }

    /**
     * 批量删除楼宇
     * 
     * @param ids 需要删除的楼宇ID
     * @return 结果
     */
    @Override
    public int deleteBaseBuildingByIds(Long[] ids)
    {
        return baseBuildingMapper.deleteBaseBuildingByIds(ids);
    }

    /**
     * 删除楼宇信息
     * 
     * @param id 楼宇ID
     * @return 结果
     */
    @Override
    public int deleteBaseBuildingById(Long id)
    {
        return baseBuildingMapper.deleteBaseBuildingById(id);
    }
}
